package com.pacifico.telebusca.web.controladores;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.pacifico.telebusca.web.facade.TeleBuscaFacade;

@Controller
@RequestMapping("/empresa")
public class ControladorEmpresa {/*
	
	@Autowired
	private HttpServletRequest httpServletRequest;
		
	@Autowired
	private TeleBuscaFacade teleBuscaFacade;
	

	@RequestMapping(method = RequestMethod.GET)
	public String agregarEmpresa(ModelMap model,@RequestParam String userName) {
 
		System.out.println("ControlladorMenu = " + userName + " path = " + httpServletRequest.getContextPath());
		model.addAttribute("message", "Spring 3 MVC Hello World");
		return "menu";
 
	}

	public String guardarEmpresa(){
		teleBuscaFacade.guardarEmpresa();
		return "";
	}
	
	public String eliminarEmpresa(){
		teleBuscaFacade.eliminarEmpresa();
		return "";
	}
	
	public String editarEmpresa(){
		teleBuscaFacade.editarEmpresa();
		return "";
	}
	
	public String buscarEmpresas(){
		teleBuscaFacade.buscarEmpresas();
		return "";
	}
	
*/}
